import sequelize from "../../db/dbConnext";
import { option } from "../../db/commomConfig";
import { DataTypes } from "sequelize";

import MessageTypeEntity from "../../../entities/HomePage/MessageTypeEntity";
export type IMessageType = Omit<MessageTypeEntity, "validateThis">;

const MessageTypeModel = sequelize.define<any, IMessageType>(
  "message_type",
  {
  typeName: {
      type: DataTypes.STRING,
      allowNull: true,
    }
  },
  option
);
export default MessageTypeModel;
